package com.cf.constant;

/**
 * cf-game-EnumReturnCode
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/2 9:59
 */
public enum EnumReturnCode {

    SUCCESS(0, "成功！"),
    ERROR(500, "异常"),
    CHECK_ERROR(300, "参数校验异常"),
    NEED_LOGIN(401, "请登陆"),
    PERMISSION_ERROR(405, "权限不足"),
    NEED_RECHARGE_ERROR(501, "账户余额不足");

    private Integer code;

    private String msg;

    EnumReturnCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
